/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
/**
 * \file
 * \brief FastProtocol header.
 * \author Antti Maula <antti.maula@tkk.fi>
 * 
 * $Id: fastProtocol.h,v 1.9.2.2 2009-08-19 11:06:51 amaula Exp $
 *
 */
#ifndef _FASTPROTOCOL_H_
#define _FASTPROTOCOL_H_
#include "../protocol.h"
#include "protocolID.h"
#include "fastProtocolHdr.h"

typedef struct _fastProtocol
{
} TFastProtocol;

void fastProtocolDumpPacketHeader(int l, const TFastProtocolHeader *fastheader);

int fastProtocolInit(TFastProtocol *p);
const TProtocolEntry *fastProtocolGetProtocolEntry(TFastProtocol *);

void fastProtocolConstructHeader(TFastProtocolHeader *hdr,
				 unsigned int target_id,
				 unsigned int source_id,
				 int payload_length,
				 int flags,
				 int ttl, int statusvalue);

#endif // _FASTPROTOCOL_H_
